package com.example.kehoobackend.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "topic",autoResultMap = true)
public class Topic {

    //话题ID
    @TableId(value = "topic_id",type = IdType.AUTO)
    private Integer topic_id;

    //话题名称
    private String topic_name;

    //话题描述
    private String topic_desc;

    //话题图片（服务器路径）
    private String topic_image;

    //父话题ID
    private Integer parent_topic_id;

    //话题关注数
    @TableField(exist = false)
    private Integer followed_count;


}
